import request from './apiConfig'
const base_url = 'sta-transfer'

/**
 * 获取岗位信息(弃用)
 * @param {*} query 
 */
export function listStaTransFer(query) {
    return request({
        url: base_url,
        method: 'GET',
        params: query,
    })
}
/**
 * 添加调转记录
 * @param {*} tranForm 
 */
export function addStaTranApi(tranForm) {
    return request({
        url: base_url,
        method: 'POST',
        data: tranForm,
    })
}

export function getTransData() {
    return request({
        url: `${base_url}/data`,
        method: 'GET'
    })
}
/**
 * 删除岗位调转记录
 * @param {*} id 
 */
export function delStaTransLog(id){
    return request({
        url:`${base_url}/${id}`,
        method:"DELETE",
    })
}